package com.suray.wcs.service.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.suray.commin.core.utils.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wcs_rgv_log")
public class InterfaceLogRvg extends BaseModel implements Serializable {

    @TableId(value = "rgv_log_id", type = IdType.AUTO)
    private Integer rgvId; //小车编号

    private Integer tackId;  //任务编号

    private String deviceName; //设备名

    private String message;  //接口描述消息

    private String backtrack; //返回结果

    private String rgvParamsIn; //接口传入参数

    @TableField(exist = false)
    private Date sendTimeStart; // 发送时间开始

    @TableField(exist = false)
    private Date sendTimeEnd;   // 发送时间结束

    private Integer state; //状态

    private Long useTime; //消耗时间

    private Date operateTime;  //操作时间

    @Override
    public String toString() {
        return "InterfaceLogRvg{" +
                "rgvId=" + rgvId +
                ", tackId=" + tackId +
                ", deviceName='" + deviceName + '\'' +
                ", message='" + message + '\'' +
                ", backtrack='" + backtrack + '\'' +
                ", rgvParamsIn='" + rgvParamsIn + '\'' +
                ", sendTimeStart=" + sendTimeStart +
                ", sendTimeEnd=" + sendTimeEnd +
                ", state=" + state +
                ", useTime=" + useTime +
                ", operateTime=" + operateTime +
                '}';
    }
}
